<?php
/**
 * The Template for displaying all single posts.
 *
 * @package WordPress
 * @subpackage Twenty_Eleven
 * @since Twenty Eleven 1.0
 */

get_header(); ?>

		<div id="primary">
			<div id="content" role="main">

				<?php while ( have_posts() ) : the_post(); ?>

					<?php get_template_part( 'content-single', get_post_format() ); ?>
					
					<div id="mews_feed_nav-single">
						<h3 class="assistive-text"><em><?php _e( 'You may be interested in', 'News-feed' ); ?></em></h3>
						<ul>
						<?php 
						ob_start();
						previous_post_link( '%link', '%title', true);
						$link = ob_get_contents();
						ob_end_clean();
						
						if (!empty($link)){?>
							<li><?php echo $link;?></li>
						<?php }
						
						ob_start();
						next_post_link( '%link', '%title', true);
						$link = ob_get_contents();
						ob_end_clean();
						
						if (!empty($link)){?>
							<li><?php echo $link;?></li>
						<?php }
						?>
						
						</ul>
					</div><!-- #nav-single -->
					
					<?php comments_template( '', true ); ?>

				<?php endwhile; // end of the loop. ?>

			</div><!-- #content -->
		</div><!-- #primary -->

<?php get_sidebar('single');?>
<?php get_footer(); ?>